package com.six.vo;

import java.sql.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 数据库维护记录
 * 
 */
@Entity
@Table(name="WMS_T_BILL_DETAILS")
public class DBNeaten {
	private int dnID;// VARCHAR(16) 记录编号
	private Date dnTime;// DATE 维护时间
	private String dnNote;// NVARCHAR2(512) 备注
	private String dnPath;// NVARCHAR2(200) 备份文件路径
	private String dnState;// VARCHAR(16) 备份状态
	private User user;
	
	public DBNeaten() {
		super();
	}
	public DBNeaten(int dnID, Date dnTime, String dnNote, String dnPath,
			String dnState, User user) {
		super();
		this.dnID = dnID;
		this.dnTime = dnTime;
		this.dnNote = dnNote;
		this.dnPath = dnPath;
		this.dnState = dnState;
		this.user = user;
	}
	@Id
	@GeneratedValue
	public int getDnID() {
		return dnID;
	}
	public void setDnID(int dnID) {
		this.dnID = dnID;
	}
	public Date getDnTime() {
		return dnTime;
	}
	public void setDnTime(Date dnTime) {
		this.dnTime = dnTime;
	}
	public String getDnNote() {
		return dnNote;
	}
	public void setDnNote(String dnNote) {
		this.dnNote = dnNote;
	}
	public String getDnPath() {
		return dnPath;
	}
	public void setDnPath(String dnPath) {
		this.dnPath = dnPath;
	}
	public String getDnState() {
		return dnState;
	}
	public void setDnState(String dnState) {
		this.dnState = dnState;
	}
	@ManyToOne(cascade={CascadeType.ALL})           
    @JoinColumn(name="userID")// VARCHAR(16) 维护员编号
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	

}
